/*
 * Copyright (C) 2013 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

@import 'base/environment';

.group-expanded .group-collapsed-item,
.group-collapsed .group-expanded-item {
  display: none;
}

.toggle-group > i {
  padding-right: 0.5em;
  &:before {
    font-size: 1.25em;
  }
}

.group-summary {
  font-size: 0.9em;
  color: #555;
}

.action-darkgray {
  color: #666;
  &:hover {
    color: #333;
  }
}

.groups-list {
  padding-bottom: 80px; // ensure menus at the bottom have enough height
}

.group {
  padding: 1.5em 0;
  border-top: 1px dashed #c2c8d0;
  &:first-child {
    border-top-style: none;
  }

  .row-fluid [class*=span] {
    min-height: 0;
  }

  .group-actions {
    text-align: right;
    > a {
      margin-left: 5%;
    }
    > * {
      text-align: left;
    }
  }

  .row-fluid {
    padding-bottom: 1px; // fix weird margin-collapse/jumping bug when toggling cog menu in chrome
  }

  &.droppable-hover {
    background-color: $droppableBackground;
  }

  .show-group-full { display: none; }
  &.slots-full {
    .show-group-full { display: inline-block; }
  }
}

.group-category-contents-condensed .group {
  padding: 0.7em 1em;
}

.no-results {
  background: #fff;
  border: {
    color: #c1c7cf;
    radius: 3px;
    style: dashed;
    width: 1px;
  }
  color: #878d92;
  margin: 5px;
  padding: 8px;
  text-align: center;
}
